package element
{
	import flash.display.MovieClip;
	import flash.display.Sprite;
	
	public class Elem extends Sprite
	{
		private var _asset:MovieClip;
		private var _row:int = 0;
		private var _col:int = 0;
		
		public function Elem(mc:MovieClip, row:int, col:int)
		{
			_asset = mc;
			_row = row;
			_col = col;
			
			addChild(mc);
		}
		
		public function get col():int
		{
			return _col;
		}
		
		public function get row():int
		{
			return _row;
		}

        public function gotoAndPlay(frame:Object, scene:String = null):void
        {
            _asset.gotoAndPlay(frame, scene);
        }

        public function gotoAndStop(frame:Object, scene:String = null):void
        {
            _asset.gotoAndStop(frame, scene);
        }
	}
}
